<%--
  Created by IntelliJ IDEA.
  User: sicilin
  Date: 2017/7/31
  Time: 11:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="commons-easyui.jsp"%>
<html>
<head>
    <title>登陆</title>
    <script type="text/javascript" src="<%=basePath%>common/script/customize/customize-old.js"></script>
    <script type="text/javascript">
        function login(){
            var param = {"account":$('#account').textbox('getText'),"password":$('#password').textbox('getText')}
            tmsAjax({
                url:basePath+'login.json'
                ,data:JSON.stringify(param)
                ,type:'post'
                ,success:function(url){
                    window.location.href = basePath + url;
                }
                ,error:function () {

                }
            });
        }
    </script>
</head>
<body>
    <div class ="easyui-layout" data-options="fit:true">
        <div data-options="region:'east',title:'登陆'" style="width:400px;">
            <div id="loginDiv" style="padding: 10px;" >
                <table>
                    <tr>
                        <td>用户名：</td>
                        <td><input id="account" name = "account" class="easyui-textbox" /></td>
                    </tr>
                    <tr>
                        <td>密码：</td>
                        <td><input id="password" name = "password" class="easyui-textbox" /></td>
                    </tr>
                </table>
                <div style="padding: 10px; height: 30px;">
                    <a class="easyui-linkbutton" data-options="fit:true,iconCls:'icon-ok'" onclick="login()">登陆</a>
                </div>
            </div>
        </div>
        <div data-options="region:'center',title:'公告',border:false" style="background:#eee;">
        </div>
    </div>
</body>
</html>
